/*
 ============================================================================
 Name		: FEDocument.cpp
 Author	  : jk
 Copyright   : Your copyright notice
 Description : CFEDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "FEAppUi.h"
#include "FEDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CFEDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CFEDocument* CFEDocument::NewL(CEikApplication& aApp)
{
	CFEDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
}

// -----------------------------------------------------------------------------
// CFEDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CFEDocument* CFEDocument::NewLC(CEikApplication& aApp)
{
	CFEDocument* self = new (ELeave) CFEDocument(aApp);

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
}

// -----------------------------------------------------------------------------
// CFEDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CFEDocument::ConstructL()
{
	// No implementation required
}

// -----------------------------------------------------------------------------
// CFEDocument::CFEDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CFEDocument::CFEDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
{
	// No implementation required
}

// ---------------------------------------------------------------------------
// CFEDocument::~CFEDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CFEDocument::~CFEDocument()
{
	// No implementation required
}

// ---------------------------------------------------------------------------
// CFEDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CFEDocument::CreateAppUiL()
{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CFEAppUi;
}

// End of File
